home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / Joystick.h < prev    next >
C/C++ Source or Header  |  1995-03-01  |  396b  |  26 lines

  1. #ifndef ALJOYSTICK_H
  2. #define ALJOYSTICK_H
  3. extern "C" {
  4. #include <linux/joystick.h>
  5. }
  6. #include "control.h"
  7. #include "point.h"
  8.  
  9. class
  10. Joystick : public Control
  11. {
  12. private:
  13.     void init(int stick);
  14.     void waitfire(void);
  15.     int joyfd;
  16.     struct JS_DATA_TYPE js_data;
  17.     point centre, topleft, botright;
  18.     int right,left,down,up;
  19. public:
  20.     Joystick(int j=1);
  21.  
  22.     void calibrate(void);
  23.     void fetch(void);
  24. };
  25. #endif
  26.